To enable image loading through a call back event:
- Call LoadCB method to initiate a user load.
- ImagXpress® generates a CB event with value CBID_Open. This notifies the user to open data sources and do memory allocation/initialization.
- Once user supplies data sources, ImagXpress generates a CB event with value CBID_Read. This indicates the de-compressor is requesting more data. The user supplies this data through the WriteCBData and WriteCBDataPtr methods.
- When decompression is complete, ImagXpress generates a CB Event with value CBID_CLOSE. This notifies the user to perform any clean-up such as file closing, etc.
See Also